// mixin
// 清除浮动
@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

// 多行隐藏
@mixin text-overflow($clamp:1) {
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $clamp;
  -webkit-box-orient: vertical;
}

//flex box
@mixin flex-box($jc:space-between, $ai:center, $fd:row, $fw:nowrap) {
  display: flex;
  display: -webkit-flex;
  flex: 1;
  justify-content: $jc;
  -webkit-justify-content: $jc;
  align-items: $ai;
  -webkit-align-items: $ai;
  flex-direction: $fd;
  -webkit-flex-direction: $fd;
  flex-wrap: $fw;
  -webkit-flex-wrap: $fw;
}

// 阴影
@mixin shadow($background:#ffffff, $shadow : '0px 2px 8px rgba(102, 25, 25, 0.06)') {
  background: $background;
  box-shadow: $shadow ;
  border-radius: 6px;
  overflow: hidden;
}

// 字体
@mixin font($size, $color: #323232, $align: center,$weight: normal) {
  font-style: normal;
  font-weight: $weight;
  font-size: $size;
  color: $color;
  text-align: $align;
}


// img 
@mixin img($width : 100%, $height: 100%, $display: block) {
  width: $width;
  height: $height;
  display: $display;
}
